package com.google.code.hibernate.rest;

/**
 * 
 * @author wangzijian
 * 
 */
public class EntityNotFoundException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	public EntityNotFoundException(String entityName) {
		super("Entity '" + entityName + "' not found");
	}

	public EntityNotFoundException(String entityName, String id) {
		super("Entity '" + entityName + "' with id ' " + id + "' not found");
	}

	public EntityNotFoundException(Class<? extends Object> entityClass) {
		super("Entity '" + entityClass + "' not found");
	}

}
